package com.jlkf.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jlkf.dao.TblFeedbackMapper;
import com.jlkf.dao.TblPushMessageMapper;
import com.jlkf.dao.TblUserWithdrawMapper;
import com.jlkf.pojo.TblFeedback;
import com.jlkf.pojo.TblPushMessage;
import com.jlkf.pojo.TblUserWithdraw;
import com.jlkf.service.ContentService;

@Service
public class ContentServiceImpl implements ContentService{
	@Autowired
	private TblUserWithdrawMapper tuwm; 
	@Autowired
	private TblFeedbackMapper tblFeedbackMapper;
	@Autowired
	private TblPushMessageMapper tblPushMessageMapper;
	
	/**
	 * 提现审核列表
	 */
	@Override
	public List<TblUserWithdraw> selectList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return tuwm.selectList(map);
	}

	/**
	 * 提现审核
	 */
	@Override
	public int updateStatus(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return tuwm.updateStatus(map);
	}
    
	/**
	 * 提现详情
	 */
	@Override
	public TblUserWithdraw getDetail(Long gId) {
		// TODO Auto-generated method stub
		return tuwm.selectByPrimaryKey(gId);
	}

	/**
	 * 意见反馈列表
	 */
	@Override
	public List<TblFeedback> geFeedbackList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return tblFeedbackMapper.selectList(map);
	}

	/**
	 * 删除意见反馈
	 */
	@Override
	public int deleteList(List<String> list) {
		// TODO Auto-generated method stub
		return tblFeedbackMapper.deleteList(list);
	}

	/**
	 * 意见反馈详情
	 */
	@Override
	public TblFeedback getFeedbackDetail(Long gId) {
		// TODO Auto-generated method stub
		return tblFeedbackMapper.selectDetail(gId);
	}

	@Override
	public List<TblPushMessage> selectPushList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return tblPushMessageMapper.selectList(map);
	}

	@Override
	public int insertMessage(TblPushMessage message) {
		// TODO Auto-generated method stub
		return tblPushMessageMapper.insertSelective(message);
	}

	@Override
	public int updateMessage(TblPushMessage message) {
		// TODO Auto-generated method stub
		return tblPushMessageMapper.updateByPrimaryKeySelective(message);
	}

	@Override
	public TblPushMessage selectMessageDetail(Integer gId) {
		// TODO Auto-generated method stub
		return tblPushMessageMapper.selectByPrimaryKey(gId);
	}

	@Override
	public int deleteMessage(List<String> list) {
		// TODO Auto-generated method stub
		return tblPushMessageMapper.deleteList(list);
	}

}
